#include <iostream>
#include <new>
using namespace std;

int main(void)
{
	double *numPtr = new double(3.1415);
	int *gradeArr = new int[10];
	
	cout << "numPtr = " << numPtr << "\n" 
			<< "*numPtr = " << *numPtr << "\n";
	for(int i=0; i<10; i++)
	{
		gradeArr[i] = i*i;
		cout << "grade[" << i << "] = " << gradeArr[i] << "\n"; 
	}
	delete numPtr;
	delete [] gradeArr;
	
	return 0;
}
